package edu.whu.assignment6.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import edu.whu.assignment6.dataobject.Product;
import edu.whu.assignment6.dataobject.dto.ProductDto;

import java.util.List;

public interface ProductService {
    Product findProductById(int pid);
    List<Product> findAll();
    int addProduct(Product product);
    int deleteProduct(int pid);
    int updateProduct(Product product);
    IPage<Product> findPageAndCondition(int current, int size, Product product);
    ProductDto findPSById(int pid);
}
